package com.xinyue.logicserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;

@SpringBootApplication(scanBasePackages = {"com.xinyue"})
@EnableEurekaClient
public class GameLogicServer {

    public static void main(String[] args) {
        
        SpringApplication app = new SpringApplication(GameLogicServer.class);
        app.setWebApplicationType(WebApplicationType.SERVLET);
        ApplicationContext applicationContext = app.run(args);
        applicationContext.getBeansWithAnnotation(Service.class);
    }
}
